<template>
  <div class="vertical-buttons">
    <el-tooltip placement="left" content="属性面板">
      <el-button class="vertical-btn" :icon="Menu" circle @click="togglePanel('Properties')" />
    </el-tooltip>

    <el-tooltip placement="left" content="辅助工具">
      <el-button class="vertical-btn" :icon="Tools" circle @click="togglePanel('Tools')" />
    </el-tooltip>
  </div>
</template>

<script setup lang="ts">
import { Menu, Tools } from '@element-plus/icons-vue'
import { defineEmits } from 'vue'

const emit = defineEmits(['toggle-panel'])

const togglePanel = (type: string) => {
  emit('toggle-panel', type)
}
</script>

<style scoped>
.vertical-buttons {
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  gap: 16px;
  background-color: white;
  border-left: 1px solid #ebeef5;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.05);
}

.vertical-btn {
  width: 40px;
  height: 40px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
  border-color: #dcdfe6;
  transition: all 0.2s;
}

.vertical-btn:hover {
  background-color: #ecf5ff;
  border-color: #409eff;
  transform: translateX(-1px);
}
</style>
